package com.ruoyi.find.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.find.mapper.SecondHandHouseMapper;
import com.ruoyi.find.domain.SecondHandHouse;
import com.ruoyi.find.service.ISecondHandHouseService;

/**
 * vr房源Service业务层处理
 * 
 * @author yang
 * @date 2025-09-24
 */
@Service
public class SecondHandHouseServiceImpl implements ISecondHandHouseService 
{
    @Autowired
    private SecondHandHouseMapper secondHandHouseMapper;

    /**
     * 查询vr房源
     * 
     * @param houseId vr房源主键
     * @return vr房源
     */
    @Override
    public SecondHandHouse selectSecondHandHouseByHouseId(Long houseId)
    {
        return secondHandHouseMapper.selectSecondHandHouseByHouseId(houseId);
    }

    /**
     * 查询vr房源列表
     * 
     * @param secondHandHouse vr房源
     * @return vr房源
     */
    @Override
    public List<SecondHandHouse> selectSecondHandHouseList(SecondHandHouse secondHandHouse)
    {
        return secondHandHouseMapper.selectSecondHandHouseList(secondHandHouse);
    }

    /**
     * 新增vr房源
     * 
     * @param secondHandHouse vr房源
     * @return 结果
     */
    @Override
    public int insertSecondHandHouse(SecondHandHouse secondHandHouse)
    {
        return secondHandHouseMapper.insertSecondHandHouse(secondHandHouse);
    }

    /**
     * 修改vr房源
     * @param secondHandHouse vr房源
     * @return 结果
     */
    @Override
    public int updateSecondHandHouse(SecondHandHouse secondHandHouse)
    {
        return secondHandHouseMapper.updateSecondHandHouse(secondHandHouse);
    }

    /**
     * 批量删除vr房源
     * 
     * @param houseIds 需要删除的vr房源主键
     * @return 结果
     */
    @Override
    public int deleteSecondHandHouseByHouseIds(Long[] houseIds)
    {
        return secondHandHouseMapper.deleteSecondHandHouseByHouseIds(houseIds);
    }

    /**
     * 删除vr房源信息
     * 
     * @param houseId vr房源主键
     * @return 结果
     */
    @Override
    public int deleteSecondHandHouseByHouseId(Long houseId)
    {
        return secondHandHouseMapper.deleteSecondHandHouseByHouseId(houseId);
    }
}
